package uk.ac.aber.paws.server.config;

/**
 * @author Rob Johnson, Aberystwyth University
 * @email rob.johnson@aber.ac.uk
 * @date 21st May 2012
 * 
 * Constants.java
 * 
 * Stores generic constants used throughout for this application
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
public class Constants {
    
    public static final String VERSION = "2.16";
    
    public static final String UNDEFINED = "undefined";
    public static final String SQLSERVERDB = "SQLSERVER";
    public static final String MYSQLDB = "MYSQL"; 
     
    public static final String SLEEP_COMMAND = "SLEEP";
    public static final String WAKEUP_EVENT = "WAKEUP";
    
    public static final String REQUEST_CLIENT_IDLE_TIME = "REQUEST_CLIENT_IDLE_TIME";
    
    public static final String MANAGEMENT_GET_DBCALL_INFO = "MANAGEMENT_GET_DBCALL_INFO";
    
    public static final int RUNJOB_GENERATE_PSV_STATS = 1;
    public static final int RUNJOB_PROCESS_PROFILES = 2;
    public static final int RUNJOB_CHECK_ORGSAVINGS_REFRESH = 3;
    public static final int RUNJOB_CHECK_PURGE = 4;
    public static final int RUNJOB_START_SERVERSOCKET_LISTENER = 6;
    public static final int RUNJOB_CHECK_ARCHIVE_STATS = 7;
    public static final int RUNJOB_UPDATE_TODAY_ARCHIVE_STATS = 8;
    public static final int RUNJOB_START_SECURESERVERSOCKET_LISTENER = 9;
    public static final int RUNJOB_START_MANAGEMENT_LISTENER = 10;
    
    public static final int SLEEPMODE_SERVER_CONTROLLED_LOGGEDOUT = 1;
    public static final int SLEEPMODE_SERVER_CONTROLLED_SCHEDULED = 2;
    public static final int SLEEPMODE_SERVER_CONTROLLED_WARNING = 3;
    public static final int SLEEPMODE_CLIENT_CONTROLLED_IDLE = 4;
    public static final int WAKEMODE_SERVER_CONTROLLED_WAKE = 5;

    public static final int PAWSINSTALL_PENDING = 0;
    public static final int PAWSINSTALL_INPROGRESS = 1;
    public static final int PAWSINSTALL_COMPLETED = 2;
    public static final int PAWSINSTALL_FAILED = 3;
   
}
